﻿using API_lib.Plugin;
using API_lib.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows;

namespace League
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {

        List<dynamic> plugins;

        [STAThread]
        public static void Main(string[] args)
        {
            //include custom startup code here

            PluginHandler ph = new PluginHandler();

            var app = new App();//Application or a subclass thereof
            var win = new MainWindow();//Window or a subclass thereof
            app.Run(win); //do WPF init and start windows message pump.


            app.plugins = ph.import();

            ErrorLogger.logInfo(app.plugins.Count.ToString());

        }


    }
}
